import { Component, OnInit } from '@angular/core';
import { from } from 'rxjs';
import {Router} from '@angular/router';

@Component({
  selector: 'app-list',
  templateUrl: './list.component.html',
  styleUrls: ['./list.component.scss']
})
export class ListComponent implements OnInit {

  constructor(private router:Router) { }
  public color:string;
  ngOnInit(): void {
  }

  /**返回首页 */
  gotoHome(){
    console.log(3131);
    this.router.navigate(['']);
  }

}
